package com.xal.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xal.pojo.entiey.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: Swagger2
 * @author: 邢奥林
 * @create: 2023-04-12 18:56
 **/

@Mapper
public interface StudentMapper extends BaseMapper<Student> {
    IPage<Student> findByPage(IPage<Student> iPage, @Param("ew") Wrapper<Student> wrapper);
    //查
    Student findById(Integer id);
    List<Student> findAll();
    //增
    int insert(Student student);
    //改
    int update(Student student);
    //删
    int delete(Integer id);

}
